package com.hsy.linemoney.modules.my.editinformation;

import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.hsy.linemoney.R;
import com.hsy.linemoney.modules.common.CommonBaseActivityWithSimpleActionBar;

/**
 * Created by Administrator on 2016/7/12.
 */
public class EditMyInformationActivity extends CommonBaseActivityWithSimpleActionBar implements View.OnClickListener {
    private RelativeLayout name_relative, email_relative, phone_relative, address_relative, change_password_relative;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTitle(R.string.title_my_edit);
        setContentView(R.layout.activity_my_information);

        name_relative = F(R.id.name_relative);
        email_relative = F(R.id.email_relative);
        phone_relative = F(R.id.phone_relative);
        address_relative = F(R.id.address_relative);
        change_password_relative = F(R.id.change_password_relative);

        name_relative.setOnClickListener(this);
        email_relative.setOnClickListener(this);
        phone_relative.setOnClickListener(this);
        address_relative.setOnClickListener(this);
        change_password_relative.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {

            case R.id.name_relative:

                startActivity(EditNameActivity.class);

                break;

            case R.id.email_relative:

                startActivity(EditEmailActivity.class);

                break;

            case R.id.phone_relative:

                startActivity(EditPhoneActivity.class);

                break;

            case R.id.address_relative:

                startActivity(EditAddressActivity.class);

                break;

            case R.id.change_password_relative:

                startActivity(EditPasswordActivity.class);

                break;
        }

    }
}
